namespace KL.Standard.Model.Attribute;

/// <summary>
/// 日志配置的标签
/// </summary>
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
public class LogConfigAttribute: System.Attribute
{
    public LogConfigAttribute(bool reqCntIgnore = false)
    {
        this.IgnoreRequestCnt = reqCntIgnore;
    }
    /// <summary>
    /// 忽略请求内容的记录
    /// </summary>
    public bool IsIgnoreRequestTxt { get; set; } = false;
    /// <summary>
    /// 是否忽略内容的记录
    /// </summary>
    public bool IgnoreRequestCnt { set; get; } = false;
    /// <summary>
    /// 是否写入数据库日志表
    /// </summary>
    public bool Write2DB { set; get; } = false;
}